package com.five.zhh.fiveinfive.room.user;

import lombok.Data;

import java.util.Objects;
import java.util.UUID;

@Data
public class UserInfo {

    private String userId;

    private String userName;

    public UserInfo() {
        this.userId = UUID.randomUUID().toString();
        this.userName = "默认";
    }

    public UserInfo(String userId, String userName) {
        this.userName = userName;
        this.userId = userId;
    }

    public UserInfo(String userName) {
        this.userId = UUID.randomUUID().toString();
        this.userName = userName;
    }
}
